package com.shopping.dev.controller;

import com.shopping.dev.bo.CommonResultBO;
import com.shopping.dev.bo.ShopcartBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(value = "购物车", tags = { "购物车相关api接口" })
@RestController
@RequestMapping("shopcart")
public class ShopCatController {
    @ApiOperation(value = "添加商品到购物车")
    @PostMapping("/add")
    public CommonResultBO add(@RequestParam String userId, @RequestBody ShopcartBO shopcartBO){
        return CommonResultBO.ok();
    }

    @ApiOperation(value = "从购物车中删除商品")
    @PostMapping("/del")
    public CommonResultBO del(@RequestParam String userId, @RequestBody ShopcartBO shopcartBO){
        return CommonResultBO.ok();
    }
}
